package com.hihiwjc.app.zzmh.entities.home;

import com.alibaba.fastjson.JSON;
import com.hihiwjc.app.zzmh.entities.BaseEntity;

import java.util.List;

/**
 * 首页推荐
 * <br/>Created by hihiwjc on 2015/10/25 0025
 * <br/>Author:hihiwjc
 * <br/>Email:hihiwjc@live.com
 */

public class Recommend extends BaseEntity {
    private List<BannersEntity> banners;
    private List<ListsEntity> lists;

    public void setBanners(List<BannersEntity> banners) {
        this.banners = banners;
    }

    public void setLists(List<ListsEntity> lists) {
        this.lists = lists;
    }

    public List<BannersEntity> getBanners() {
        return banners;
    }

    public List<ListsEntity> getLists() {
        return lists;
    }

    public Recommend parseJSON(String jStr) {
        return JSON.parseObject(jStr, Recommend.class);
    }

    public static class BannersEntity {
        private int id;
        private String content;
        private int theme_id;
        /**
         * id : 3414
         * cover : http://image.zhuizhuiimg.com//image/720440_1445586565.jpg
         * name : 周五の下午茶--黑社会的超能力女儿
         * url : http://www.aizhuizhui.com/new/4b8166d3e05a1156a84e90270aea3cbf
         * comment_count : 0
         * up_count : 0
         */

        private ThemeInfoEntity theme_info;

        public void setId(int id) {
            this.id = id;
        }

        public void setContent(String content) {
            this.content = content;
        }

        public void setTheme_id(int theme_id) {
            this.theme_id = theme_id;
        }

        public void setTheme_info(ThemeInfoEntity theme_info) {
            this.theme_info = theme_info;
        }

        public int getId() {
            return id;
        }

        public String getContent() {
            return content;
        }

        public int getTheme_id() {
            return theme_id;
        }

        public ThemeInfoEntity getTheme_info() {
            return theme_info;
        }

        public static class ThemeInfoEntity {
            private int id;
            private String cover;
            private String name;
            private String url;
            private int comment_count;
            private int up_count;

            public void setId(int id) {
                this.id = id;
            }

            public void setCover(String cover) {
                this.cover = cover;
            }

            public void setName(String name) {
                this.name = name;
            }

            public void setUrl(String url) {
                this.url = url;
            }

            public void setComment_count(int comment_count) {
                this.comment_count = comment_count;
            }

            public void setUp_count(int up_count) {
                this.up_count = up_count;
            }

            public int getId() {
                return id;
            }

            public String getCover() {
                return cover;
            }

            public String getName() {
                return name;
            }

            public String getUrl() {
                return url;
            }

            public int getComment_count() {
                return comment_count;
            }

            public int getUp_count() {
                return up_count;
            }
        }
    }

    public static class ListsEntity {
        private int id;
        private String name;
        private String content;
        private int theme_id;
        private ThemeInfoEntity theme_info;
        private int obj_type;
        private List<ThemeListEntity> theme_list;
        private List<ComicsEntity> comics;

        public void setComics(List<ComicsEntity> comics) {
            this.comics = comics;
        }

        public List<ComicsEntity> getComics() {
            return comics;
        }

        public void setId(int id) {
            this.id = id;
        }

        public void setName(String name) {
            this.name = name;
        }

        public void setContent(String content) {
            this.content = content;
        }

        public void setTheme_id(int theme_id) {
            this.theme_id = theme_id;
        }

        public void setTheme_info(ThemeInfoEntity theme_info) {
            this.theme_info = theme_info;
        }

        public void setObj_type(int obj_type) {
            this.obj_type = obj_type;
        }

        public void setTheme_list(List<ThemeListEntity> theme_list) {
            this.theme_list = theme_list;
        }

        public int getId() {
            return id;
        }

        public String getName() {
            return name;
        }

        public String getContent() {
            return content;
        }

        public int getTheme_id() {
            return theme_id;
        }

        public ThemeInfoEntity getTheme_info() {
            return theme_info;
        }

        public int getObj_type() {
            return obj_type;
        }

        public List<ThemeListEntity> getTheme_list() {
            return theme_list;
        }

        public static class ComicsEntity {
            private int id;
            private String name;
            private String cover_img;
            private int finished;
            private String last_volume;
            private int topic_count;
            private int read_mode;
            private int have_resource;
            private int have_comic_review;
            private double comic_score;
            private String review_count;

            public void setId(int id) {
                this.id = id;
            }

            public void setName(String name) {
                this.name = name;
            }

            public void setCover_img(String cover_img) {
                this.cover_img = cover_img;
            }

            public void setFinished(int finished) {
                this.finished = finished;
            }

            public void setLast_volume(String last_volume) {
                this.last_volume = last_volume;
            }

            public void setTopic_count(int topic_count) {
                this.topic_count = topic_count;
            }

            public void setRead_mode(int read_mode) {
                this.read_mode = read_mode;
            }

            public void setHave_resource(int have_resource) {
                this.have_resource = have_resource;
            }

            public void setHave_comic_review(int have_comic_review) {
                this.have_comic_review = have_comic_review;
            }

            public void setComic_score(double comic_score) {
                this.comic_score = comic_score;
            }

            public void setReview_count(String review_count) {
                this.review_count = review_count;
            }

            public int getId() {
                return id;
            }

            public String getName() {
                return name;
            }

            public String getCover_img() {
                return cover_img;
            }

            public int getFinished() {
                return finished;
            }

            public String getLast_volume() {
                return last_volume;
            }

            public int getTopic_count() {
                return topic_count;
            }

            public int getRead_mode() {
                return read_mode;
            }

            public int getHave_resource() {
                return have_resource;
            }

            public int getHave_comic_review() {
                return have_comic_review;
            }

            public double getComic_score() {
                return comic_score;
            }

            public String getReview_count() {
                return review_count;
            }
        }

        public static class ThemeInfoEntity {
            private int id;
            private String name;
            private String url;
            private int comment_count;
            private int up_count;

            public void setId(int id) {
                this.id = id;
            }

            public void setName(String name) {
                this.name = name;
            }

            public void setUrl(String url) {
                this.url = url;
            }

            public void setComment_count(int comment_count) {
                this.comment_count = comment_count;
            }

            public void setUp_count(int up_count) {
                this.up_count = up_count;
            }

            public int getId() {
                return id;
            }

            public String getName() {
                return name;
            }

            public String getUrl() {
                return url;
            }

            public int getComment_count() {
                return comment_count;
            }

            public int getUp_count() {
                return up_count;
            }
        }

        public static class ThemeListEntity {
            private int id;
            private String cover;
            private String name;
            private String url;
            private int comment_count;
            private int up_count;

            public void setId(int id) {
                this.id = id;
            }

            public void setCover(String cover) {
                this.cover = cover;
            }

            public void setName(String name) {
                this.name = name;
            }

            public void setUrl(String url) {
                this.url = url;
            }

            public void setComment_count(int comment_count) {
                this.comment_count = comment_count;
            }

            public void setUp_count(int up_count) {
                this.up_count = up_count;
            }

            public int getId() {
                return id;
            }

            public String getCover() {
                return cover;
            }

            public String getName() {
                return name;
            }

            public String getUrl() {
                return url;
            }

            public int getComment_count() {
                return comment_count;
            }

            public int getUp_count() {
                return up_count;
            }
        }
    }
}
